Systems and methods for epigenetic analysis

ABSTRACT

The invention provides systems and methods for determining patterns of modification to a genome of a subject by representing the genome using a graph, such as a directed acyclic graph (DAG) with divergent paths for regions that are potentially subject to modification, profiling segments of the genome for evidence of epigenetic modification, and aligning the profiled segments to the DAG to determine locations and patterns of the epigenetic modification within the genome.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a Continuation of U.S. application Ser. No. 15/007,874, filed Jan. 27, 2016, which claims priority to and the benefit of U.S. Provisional Application Ser. No. 62/209,058, filed Aug. 24, 2015, the contents of which are incorporated by reference.

TECHNICAL FIELD

The invention relates to epigenetic analysis.

BACKGROUND

Epigenetic modifications to the human genome are linked to cancer and other clinical pathologies. For example, hypomethylation of the genome is highly prevalent across all cancer types but also exhibits regional specificity depending on tumor type and stage as discussed in Hoffman, 2005, Causes and consequences of DNA hypomethylation in human cancer, Biochem Cell Biol 83(3):296-321. Epigenetic modifications are also thought to irreversibly alter the expression of genes during the normal differentiation of embryonic stem cells into specific tissues. Patterns of epigenetic modifications can potentially reveal such conditions as fetal chromosome disorders. See Hu′ten et al., 2011, Non-invasive prenatal diagnosis: An epigenetic approach to the detection of common fetal chromosome disorders by analysis of maternal blood samples, in Circulating Nucleic Acids in Plasma and Serum, Proc 6 Int Conf CNIPS, pp. 133-142, Gahan, Ed. Springer.

Unfortunately, existing approaches to studying patterns of epigenetic modification are limited. It is proposed that methylated cytosine in genomic DNA can be detected by bisulfite sequencing. Treatment of DNA with bisulfite converts un-methylated cytosines to uracil without affecting methylated cytosines in the manner shown in FIG. 9 . During subsequent amplification and sequencing steps, the uracil residues act as templates for incorporate of adenines, which implies that where sequencing yields a cytosine base call, it can be supposed that the original DNA included a methylated cytosine at that location. However, the sequencing procedures will yield adenine base calls for both the original thymines and the original unmethylated cytosines.

SUMMARY

The invention provides systems and methods for determining patterns of modification to a genome of a subject by representing the genome using a graph, such as a directed acyclic graph (DAG), with divergent paths for regions that are potentially subject to modification, profiling segments of the genome for evidence of epigenetic modification, and aligning the profiled segments to the DAG to determine locations and patterns of the epigenetic modification within the genome. The DAG can be created by sequencing at least a portion of the genome. To determine a pattern of methylation in the genome, segments can be profiled by a bisulfite sequencing, or Methyl-Seq, operation to produce a sequence in which a C represents a methylated cytosine in the original genome. That sequence can be aligned to the DAG to determine the pattern of methylation in the genome. Thus by determining the presence of methylated bases via the bisulfite sequencing operation, and determining the location of those bases in the genome by reference to the DAG, the invention may be used to provide a report that describes a pattern of epigenetic modification within the subject's genome. Since the DAG includes diverging paths for loci that are potentially modified, the sequence that profiles modification within a segment of the genome will align to the DAG. If the potentially modified residue was in-fact modified, then it will align to one of the diverging branches and if that residue was not modified it will align to the other of the diverging branches. Thus, use of a DAG allows for sensitive and accurate determinations of the locations—and therefore patterns—of epigenetic modification. The described method can be used to show a pattern of methylation across a substantial portion of gene, operon, chromosome, or genome. Thus methods of the invention can be used to provide valuable insights into an organism's development or a subject's health and can potentially reveal hypomethylation or other patterns of modification that may give an early warning of cancer or other clinically significant issues.

In certain aspects, the invention provides a method for determining genomic modifications in a subject. The method includes obtaining a sequence of nucleotide bases from nucleic acid from a subject and transforming the sequence into a graph. The graph is composed of vertices connected by edges and includes at least one path that splits into a first branch and a second branch, wherein the first branch represents a base observed in a position of the sequence and the second branch represents an alternative base not observed in the position. The first branch and the second branch may subsequently rejoin, e.g., just 3′ to the position. A second sequence is obtained from bisulfite-treated nucleic acid from the subject and the method further includes determining an optimal alignment between the second sequence and the graph and observing—in a position in the second sequence that aligns to the position in the sequence—a corresponding base that matches the base observed in the position. The second sequence of nucleotide bases may be obtained by treating a portion of the nucleic acid from the subject with bisulfite and sequencing the bisulfite-treated nucleic acid from the subject. A report is provided that identifies a modified base at the position within the genome of the subject.

In some embodiments, the treatment selectively converts unmodified versions of the base to another nucleotide base. For example, the second sequence can be obtained from bisulfite-treated DNA from the subject. In certain embodiments, the base represented by the first branch of the graph is cytosine and the alternative base represented by the second branch is thymine, and the report identifies a methylated cytosine at the position within an exon, gene, operon, genome, or other segment of interest from the subject. Methods may include identifying methylated cytosines at a plurality of positions within the genome of the subject. In some embodiments, methods include identifying all other instances of the modified base occurring across at least 50% of a length of a chromosome of the genome of the subject. The report may identify an unmodified version of the base at a different position in the genome of the subject (e.g., the report may show what is and is not modified across a gene, operon, chromosome, or genome). The sequence and the second sequence may be derived from sequence reads generated by operating a nucleic acid sequencing instrument.

Preferably the steps are performed using a computer system comprising a processor coupled to a memory subsystem, and the graph is stored in the memory subsystem using adjacency lists. In some embodiments, there is an adjacency list for each vertex and edge, in which the adjacency list for a vertex or edge lists the edges or vertices to which that vertex or edge is adjacent. Each entry in the adjacency list is a pointer to the adjacent vertex or edge. Preferably, each pointer identifies a physical location in the memory subsystem at which the adjacent object is stored.

Methods of the invention may use an iterative process to accommodate treatment procedures that do not always treat each and every modified base. For example, where some given bisulfite treatment does not always convert every methylated cytosine, the method may include performing a plurality of replicate bisulfite treating, sequencing, and alignment operations and calling a methylated cytosine when a plurality of replicate sequences include a cytosine aligned to the position of the sequence.

Methods may be used to provide a report on phenomenon with clinical or developmental significance to a subject. For example, a report may identify a gene in the subject for which transcription has been regulated by the methylated cytosine at the position within the genome of the subject. In some embodiments, the report identifies a methylation status of a CpG island within the genome of the subject, for example, whether the CpG island is hyper- or hypo-methylated, or a pattern of methylation within the CpG island.

Aspects of the invention provide a computer system for determining genomic modifications in a subject. The computer system includes a processor coupled to a memory subsystem and is operable to obtain a sequence of nucleotide bases from nucleic acid from a subject and transform the sequence into a graph. The graph includes vertices connected by edges and at least one path that splits into a first branch and a second branch, wherein the first branch represents a base observed in a position of the sequence and the second branch represents an alternative base not observed in the position. The first branch and the second branch may subsequently rejoin, e.g., just 3′ to the position. The graph is preferably stored in the memory subsystem using adjacency lists. In some embodiments, there is an adjacency list for each vertex and edge, in which the adjacency list for a vertex or edge lists the edges or vertices to which that vertex or edge is adjacent. Each entry in adjacency list is a pointer to the adjacent vertex or edge. Preferably, each pointer identifies a physical location in the memory subsystem at which the adjacent object is stored. The system may be operated to obtain a second sequence from bisulfite-treated nucleic acid from the subject and determine an optimal alignment between the second sequence and the graph. The system is operable to observe—in a position in the second sequence that aligns to the position in the sequence—a corresponding base that matches the base observed in the position. The system provides a report that identifies a modified base at the position within the genome of the subject.

In some embodiments, the treatment selectively converts unmodified versions of the base to another nucleotide base. In certain embodiments, the base represented by the first branch of the graph is cytosine and the alternative base represented by the second branch is thymine, and the report identifies a methylated cytosine at the position within the genome of the subject. In certain embodiments, the system is operable to identify methylated cytosines at a plurality of positions within the genome of the subject. In some embodiments, the system identifies all other instances of the modified base occurring across at least 50% of a length of a chromosome of the genome of the subject. The report may identify an unmodified version of the base at a different position in the genome of the subject (e.g., the report may show what is and is not modified across a gene, operon, chromosome, or genome). The sequence and the second sequence may be derived from sequence reads generated by operating a nucleic acid sequencing instrument.

The system may provide a report on phenomenon with clinical or developmental significance to a subject. For example, a report may identify a gene in the subject for which transcription has been regulated by the methylated cytosine at the position within the genome of the subject. In some embodiments, the report identifies a methylation status of a CpG island within the genome of the subject.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 diagrams a method for profiling epigenetic modifications in a genome.

FIG. 2 illustrates transforming a sequence from a genome into a graph.

FIG. 3 illustrates a computer system for performing methods of the invention.

FIG. 4 shows the use of adjacency lists in an embodiment.

FIG. 5 shows the use of an adjacency list for each vertex and each edge of the graph.

FIG. 6 diagrams obtaining the second sequence according to some embodiments.

FIG. 7 shows the matrices used by a modified Smith-Waterman operation for performing an alignment against a graph.

FIG. 8 illustrates a report profiling modified bases within the genome of the subject.

FIG. 9 gives a structure of certain pyrimidine nucleotides.

DETAILED DESCRIPTION

The invention provides systems and methods for the graph-based analysis of epigenetic phenomenon. Systems and methods of the invention may be used with Methyl-Seq data to profile patterns of epigenetic modifications in a genome of a subject. The invention includes the insight that the complex and frequently-compromised data produced by Methyl-Seq sequencing is particularly well suited to benefit from the disclosed graph-based alignment methods. In certain embodiments, the invention uses a graph, such as a directed acyclic graph (DAG) to represent a genome or region thereof with potentially modified loci being included in the DAG in branches for each of the modified and unmodified forms. A technique such as Methyl-Seq can be used to profile a segment of the genome to identify modified residues, and the profiled segment can be compared to the DAG, using for example a modified Smith-Waterman operation to determine locations and patterns of the modified residues within the genome.

FIG. 1 diagrams a method 101 for determining a pattern of epigenetic modifications in a genome. The method 101 includes obtaining a sequence 113 of nucleotide bases from nucleic acid 107 from a subject and transforming 125 the sequence into a graph. The graph is composed of vertices connected by edges and includes at least one path that splits into a first branch and a second branch, wherein the first branch represents a base observed in a position of the sequence and the second branch represents an alternative base not observed in the position. The first branch and the second branch may subsequently rejoin, e.g., just 3′ to the position. A second sequence 135 is obtained from bisulfite-treated nucleic acid 129 from the subject and the method further includes determining an optimal alignment 141 between the second sequence and the graph and observing 149—in a position in the second sequence that aligns to the position in the sequence—a corresponding base that matches the base observed in the position. A report is provided that identifies a modified base at the position within the genome of the subject.

FIG. 2 illustrates obtaining 113 a sequence 209 from a genome of a subject and transforming 125 the sequence into a graph. FIG. 2 also shows that the obtained sequence 113 can be used in a variant calling operation 211.

In certain embodiments, sequence reads are obtained by performing sequencing on a sample from a subject. Sequencing may be by any method known in the art. See, generally, Quail, et al., 2012, A tale of three next generation sequencing platforms: comparison of Ion Torrent, Pacific Biosciences and Illumina MiSeq sequencers, BMC Genomics 13:341. DNA sequencing techniques include classic dideoxy sequencing reactions (Sanger method) using labeled terminators or primers and gel separation in slab or capillary, sequencing by synthesis using reversibly terminated labeled nucleotides, pyrosequencing, 454 sequencing, Illumina/Solexa sequencing, allele specific hybridization to a library of labeled oligonucleotide probes, sequencing by synthesis using allele specific hybridization to a library of labeled clones that is followed by ligation, real time monitoring of the incorporation of labeled nucleotides during a polymerization step, polony sequencing, and SOLiD sequencing.

A sequencing technique that can be used includes, for example, use of sequencing-by-synthesis systems sold under the trademarks GS JUNIOR, GS FLX+ and 454 SEQUENCING by 454 Life Sciences, a Roche company (Branford, Conn.), and described by Margulies, M. et al., Genome sequencing in micro-fabricated high-density picotiter reactors, Nature, 437:376-380 (2005); U.S. Pat. Nos. 5,583,024; 5,674,713; and 5,700,673, the contents of which are incorporated by reference herein in their entirety. 454 sequencing involves two steps. In the first step of those systems, DNA is sheared into blunt-end fragments attached to DNA capture beads and then amplified in droplets. In the second step, pyrosequencing is performed on each DNA fragment in parallel. Addition of one or more nucleotides generates a light signal that is recorded by a CCD camera in a sequencing instrument.

Another example of a DNA sequencing technique that can be used is SOLiD technology by Applied Biosystems from Life Technologies Corporation (Carlsbad, Calif.). In SOLiD sequencing, genomic DNA is sheared into fragments, and adaptors are attached to generate a fragment library. Clonal bead populations are prepared in microreactors containing beads, primers, template, and PCR components. Following PCR, the templates are denatured and enriched and the sequence is determined by a process that includes sequential hybridization and ligation of fluorescently labeled oligonucleotides.

Another example of a DNA sequencing technique that can be used is ion semiconductor sequencing using, for example, a system sold under the trademark ION TORRENT by Ion Torrent by Life Technologies (South San Francisco, Calif.). Ion semiconductor sequencing is described, for example, in Rothberg, et al., An integrated semiconductor device enabling non-optical genome sequencing, Nature 475:348-352 (2011); U.S. Pubs. 2009/0026082, 2009/0127589, 2010/0035252, 2010/0137143, 2010/0188073, 2010/0197507, 2010/0282617, 2010/0300559, 2010/0300895, 2010/0301398, and 2010/0304982, each incorporated by reference. DNA is fragmented and given amplification and sequencing adapter oligos. The fragments can be attached to a surface. Addition of one or more nucleotides releases a proton (H+), which signal is detected and recorded in a sequencing instrument.

Another example of a sequencing technology that can be used is Illumina sequencing. Illumina sequencing is based on the amplification of DNA on a solid surface using fold-back PCR and anchored primers. Genomic DNA is fragmented and attached to the surface of flow cell channels. Four fluorophore-labeled, reversibly terminating nucleotides are used to perform sequential sequencing. After nucleotide incorporation, a laser is used to excite the fluorophores, and an image is captured and the identity of the first base is recorded. Sequencing according to this technology is described in U.S. Pub. 2011/0009278, U.S. Pub. 2007/0114362, U.S. Pub. 2006/0024681, U.S. Pub. 2006/0292611, U.S. Pat. Nos. 7,960,120, 7,835,871, 7,232,656, 7,598,035, 6,306,597, 6,210,891, 6,828,100, 6,833,246, and 6,911,345, each incorporated by reference.

Other examples of a sequencing technology that can be used include the single molecule, real-time (SMRT) technology of Pacific Biosciences (Menlo Park, Calif.) and nanopore sequencing as described in Soni and Meller, 2007 Clin Chem 53:1996-2001.

As shown in FIG. 2 , sequencing 113 generates a plurality of reads. Reads according to the invention generally include sequences of nucleotide data anywhere from tens to thousands of bases in length. Reads may be stored in any suitable format such as, for example, FASTA or FASTQ format. FASTA is originally a computer program for searching sequence databases and the name FASTA has come to also refer to a standard file format. See Pearson & Lipman, 1988, Improved tools for biological sequence comparison, PNAS 85:2444-2448. A sequence in FASTA format begins with a single-line description, followed by lines of sequence data. The description line is distinguished from the sequence data by a greater-than (“>”) symbol in the first column. FASTQ files are similar to FASTA but further include a line of quality scores. Typically, sequence reads will be obtained 105 in a format such as FASTA, FASTQ, or similar.

Obtaining the sequence 209 may include the assembly 205 of sequence reads. Sequence assembly 205 may include any suitable methods known in the art including de novo assembly, reference-guided assembly, others, or combinations thereof. In a preferred embodiment, sequence reads are assembled 205 using graph-based alignment methods. See, e.g., U.S. Pub. 2015/0057946 and U.S. Pub. 2015/0056613, both incorporated by reference. Embodiments of a graph and its use are discussed in greater detail below. The result of assembly 205 is a sequence 209 representing the corresponding portion of the subject's genome.

All individuals (except identical twins) are genetically unique. Accordingly, systems and methods of the invention may be used for variant calling 211 to produce genotype information 239 about un-modified bases in the subject's genome (i.e., those bases in the subject's genome which differ from a reference genome). Any suitable variant-calling operation can be performed and a variety of variant calling operations are known in the art. For example, where the organism is a person, variant calling can include aligning sequence reads to a reference such as a DAG or the human genome referred to as hg18 and reporting SNP alleles in a format such as a Sequence Alignment Map (SAM) or a Variant Call Format (VCF) file. In certain embodiments, reads are aligned to hg18 using Burrows-Wheeler Aligner version 0.5.7 for short alignments, and genotype calls are made using Genome Analysis Toolkit. See Li & Durbin, 2009, Fast and accurate short read alignment with Burrows-Wheeler Transform. Bioinformatics 25:1754-60 and McKenna et al., 2010, The Genome Analysis Toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data, Genome Res 20(9):1297-1303, the contents of each of which are incorporated by reference. Alignment to hg18 and variant calling produces results (“variant calls”) that may be stored as a sequence alignment map (SAM) or binary alignment map (BAM) file—comprising an alignment string (the SAM format is described, e.g., in Li, et al., The Sequence Alignment/Map format and SAMtools, Bioinformatics, 2009, 25(16):2078-9). Alignment strings known in the art include Simple UnGapped Alignment Report (SUGAR), Verbose Useful Labeled Gapped Alignment Report (VULGAR), and Compact Idiosyncratic Gapped Alignment Report (CIGAR) (Ning, Z., et al., Genome Research 11(10):1725-9 (2001)). These strings are implemented, for example, in the Exonerate sequence alignment software from the European Bioinformatics Institute (Hinxton, UK). CIGAR displays or includes gapped alignments one-per-line. CIGAR is a compressed pairwise alignment format reported as a CIGAR string. A CIGAR string is useful for representing long (e.g. genomic) pairwise alignments. A CIGAR string is used in SAM format to represent alignments of reads to a reference genome sequence. In a CIGAR string, each character is preceded by a number, giving the base counts of the event. Characters used can include M, I, D, N, and S (M=match; I=insertion; D=deletion; N=gap; S=substitution). The CIGAR string defines the sequence of matches/mismatches and deletions (or gaps). Additionally or alternatively, output from the variant calling may be provided in a variant call format (VCF) file. A typical VCF file 183 will include a header section and a data section. The header contains an arbitrary number of meta-information lines, each starting with characters ‘##’, and a TAB delimited field definition line starting with a single ‘#’ character. The field definition line names eight mandatory columns and the body section contains lines of data populating the columns defined by the field definition line. The VCF format is described in Danecek et al., 2011, The variant call format and VCFtools, Bioinformatics 27(15):2156-2158. Further discussion of methods for variant calling may be found in U.S. Pub. 2013/0073214; U.S. Pub. 2013/0345066; U.S. Pub. 2013/0311106; U.S. Pub. 2013/0059740; and U.S. Pub. 2012/0157322, the contents of each of which are incorporated by reference.

In a preferred embodiment, variant calling includes mapping the sequence to a reference graph, such as a directed acyclic graph (DAG) that represents known human genomic variation using methods and systems as described in U.S. Pub. 2015/0057946 and U.S. Pub. 2015/0056613, both incorporated by reference. Using alignment operations of the invention, reads can be rapidly mapped to a DAG despite their large numbers or short lengths. Numerous benefits obtain by using a DAG as a reference. For example, aligning against a DAG is more accurate than aligning against a linear reference and then attempting to adjust one's results in light of other extrinsic information. This is primarily because the latter approach enforces an unnatural asymmetry between the sequence used in the initial alignment and other information. Aligning against an object that potentially represents all the relevant physical possibilities is much more computationally efficient than attempting to align against a linear sequence for each physical possibility (the number of such possibilities will generally be exponential in the number of junctions). A modified Smith-Waterman operation for comparing a sequence to a reference DAG that may be used for variant calling is discussed in greater detail below. The optional variant calling 211 gives genotype information 239 about un-modified bases in the subject's genome.

For the epigenetic profiling, the sequence 209 is transformed 125 into a graph 231. As shown in FIG. 2 , the graph 231 can be arrived at by transforming 125 the sequence 209 or by transforming 125′ the sequence 209 after any alignment to a reference (be it a linear reference such as hg19 or a DAG as discussed above). For example, in certain embodiments, a subject's genotype information 239 (e.g., the set of variant bases in the subject's genome compared to the reference genome) may be incorporated into a graph. In these embodiments, new edges representing variation may be inserted into the graph (if not already present). In this way, the subject's genome is accounted for by the graph.

With continued reference to FIG. 2 , it can be seen that a caret over a C is used within sequence 209 to represent what was a methylated cytosine within the original genome from the subject. At the stages of obtaining the sequence 209 and transforming the sequence 209 into the graph 231, it is not necessary to have any knowledge of the methylated cytosine and that mark is included in FIG. 2 to illustrate how systems and methods of the invention function.

In the depicted embodiment, the sequence 209 is transformed into the graph 231 (a “Methyl-Seq-ready graph”) by creating nodes for sequence substrings and edges connecting the nodes. The graph may be created in the computer memory in that way or that relationship may be reversed with sequence stored in the edge objects. Creating the graph 231 further includes adding a single-nucleotide thymine branch as an alternative in place of every cytosine in sequence 209.

By allowing for the fact that cytosine may, post-bisulfite-treatment, be sequenced either as cytosine or thymine, using a graph here, pre-bisulfite treatment, is an excellent way to achieve unbiased and accurate alignment, and using a graph based on the subject's normal genome allows one to distinguish between C→T SNPs (which will show up as Ts in the alignment) from unmethylated cytosine nucleotides (which will only show up as Ts in the Methyl-Seq-based sequence). The latter point is important because in many cases the proportion of Cs methylated in a particular region will be the biologically-significant fact (e.g., will be the trigger for silencing a particular gene). As shown in FIG. 2 , the variant calling 211 can provide genotype information 239 about un-modified bases in the subject's genome and thus, here, calls a genotype for the subject as g.4C>T (where the “4” would actually typically be distance from the beginning of the feature of interest (e.g., exon, gene, chromosome, etc). Regardless of the variant calling 211 operation, methods of the invention include transforming the sequence 209 into the graph 231 using a computer system with a memory subsystem storing the graph 231 in the memory subsystem.

FIG. 3 illustrates a computer system 301 suitable for performing methods of the invention. The system 301 includes at least one computer 333. Optionally, the system 301 may further include one or more of a server computer 309 and a sequencer 355, which may be coupled to a sequencer computer 351. Each computer in the system 301 includes a processor coupled to a memory device and at least one input/output device. Thus the system 301 includes at least one processor coupled to a memory subsystem (e.g., a memory device or collection of memory devices 375). Using those mechanical components, the system 301 is operable to obtain a sequence generated by sequencing nucleic acid from a genome of a patient. The system uses the processor to transform the sequence 209 into the graph 231.

Processor refers to any device or system of devices that performs processing operations. A processor will generally include a chip, such as a single core or multi-core chip, to provide a central processing unit (CPU). A processor may be provided by a chip from Intel or AMD. A processor may be any suitable processor such as the microprocessor sold under the trademark XEON E7 by Intel (Santa Clara, Calif.) or the microprocessor sold under the trademark OPTERON 6200 by AMD (Sunnyvale, Calif.).

The memory subsystem 375 contains one or any combination of memory devices. A memory device is a mechanical device that stores data or instructions in a machine-readable format. Memory may include one or more sets of instructions (e.g., software) which, when executed by one or more of the processors of the disclosed computers can accomplish some or all of the methods or functions described herein. Preferably, each computer includes a non-transitory memory device such as a solid state drive, flash drive, disk drive, hard drive, subscriber identity module (SIM) card, secure digital card (SD card), micro SD card, or solid-state drive (SSD), optical and magnetic media, others, or a combination thereof.

Using the described components, the system 301 is operable to produce a report (such as the report 801 of FIG. 8 , described below) and provide the report 801 to a user via an input/output device. An input/output device is a mechanism or system for transferring data into or out of a computer. Exemplary input/output devices include a video display unit (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), a printer, an alphanumeric input device (e.g., a keyboard), a cursor control device (e.g., a mouse), a disk drive unit, a speaker, a touchscreen, an accelerometer, a microphone, a cellular radio frequency antenna, and a network interface device, which can be, for example, a network interface card (NIC), Wi-Fi card, or cellular modem.

Preferably the graph 231 is stored in the memory subsystem using adjacency lists, which may include pointers to identify a physical location in the memory subsystem 375 where each vertex is stored. In a preferred embodiment, the graph 231 is stored in the memory subsystem 375 using adjacency lists. In some embodiments, there is an adjacency list for each vertex. For discussion of implementations see ‘Chapter 4, Graphs’ at pages 515-693 of Sedgewick and Wayne, 2011, Algorithms, 4th Ed., Pearson Education, Inc., Upper Saddle River N.J., 955 pages, the contents of which are incorporated by reference and within which pages 524-527 illustrate adjacency lists.

FIG. 4 shows the use of an adjacency list 401 for each vertex 405. The system uses the processor to create a graph that includes vertices and edges through the use of adjacency lists or index free adjacency. Thus, the processor may create the graph 231 using index-free adjacency wherein a vertex 405 includes a pointer to another vertex 405 to which it is connected and the pointer identifies a physical location in on a memory device where the connected vertex is stored. The graph 231 may be implemented using adjacency lists such that each vertex or edge stores a list of such objects that it is adjacent to. Each adjacency list comprises pointers to specific physical locations within a memory device for the adjacent objects.

In the top part of FIG. 4 , the graph 231 is illustrated in a cartoon-like visual-friendly format. The graph 231 will typically be stored on a physical device of memory subsystem 375 in a fashion that provides for very rapid traversals. In that sense, the bottom portion of FIG. 4 is not cartoon-like and represents that objects are stored at specific physical locations on a tangible part of the memory subsystem 375. Each node 405 is stored at a physical location, the location of which is in any adjacency list 401 that references that node. Each node 405 has an adjacency list 401 that includes every adjacent node in the graph 231. The entries in the list 401 are pointers to the adjacent nodes.

In certain embodiments, there is an adjacency list for each vertex and edge and the adjacency list for a vertex or edge lists the edges or vertices to which that vertex or edge is adjacent.

FIG. 5 shows the use of an adjacency list 401 for each vertex 405 and edge 409. As shown in FIG. 5 , system 301 creates the graph 231 using an adjacency list 401 for each vertex and edge, wherein the adjacency list 401 for a vertex 405 or edge 409 lists the edges or vertices to which that vertex or edge is adjacent. Each entry in adjacency list 401 is a pointer to the adjacent vertex or edge.

Preferably, each pointer identifies a physical location in the memory subsystem at which the adjacent object is stored. In the preferred embodiments, the pointer or native pointer is manipulatable as a memory address in that it points to a physical location on the memory but also dereferencing the pointer accesses intended data. That is, a pointer is a reference to a datum stored somewhere in memory; to obtain that datum is to dereference the pointer. The feature that separates pointers from other kinds of reference is that a pointer's value is interpreted as a memory address, at a low-level or hardware level. The speed and efficiency of the described graph genome engine allows sequence 209 to be queried against a genomic-scale genomic reference DAG (such as the DAG 231 of FIG. 2 ) containing millions of loci, using a computer system 301. Such a graph representation provides means for fast random access, modification, and data retrieval.

In some embodiments, fast random access is supported and graph object storage are implemented with index-free adjacency in that every element contains a direct pointer to its adjacent elements (e.g., as described in U.S. Pub. 2014/0280360 and U.S. Pub. 2014/0278590, incorporated by reference), which obviates the need for index look-ups, allowing traversals (e.g., as done in the modified SW alignment algorithm described herein) to be very rapid. Index-free adjacency is another example of low-level, or hardware-level, memory referencing for data retrieval (as required in alignment and as particularly pays off in terms of speed gains in the modified, multi-dimensional Smith-Waterman alignment described below). Specifically, index-free adjacency can be implemented such that the pointers contained within elements are in-fact references to a physical location in memory.

Since a technological implementation that uses physical memory addressing such as native pointers can access and use data in such a lightweight fashion without the requirement of separate index tables or other intervening lookup steps, the capabilities of a given computer, e.g., any modern consumer-grade desktop computer, are extended to allow for full operation of a genomic-scale DAG (i.e., a graph 231 that represents all loci in a substantial portion of the subject's genome). Thus storing graph elements (e.g., nodes and edges) using a library of objects with native pointers or other implementation that provides index-free adjacency—i.e., embodiments in which data is retrieved by dereferencing a pointer to a physical location in memory—actually improves the ability of the technology to provide storage, retrieval, and alignment for genomic information since it uses the physical memory of a computer in a particular way.

While no specific format is required for storage of a DAG, FIGS. 4 and 5 are presented to illustrate useful formats. In illustrations below, exemplary DAGs are presented and discussed as graphs, but it will be appreciated that a DAG qua graph can be translated directly to a data structure in computer memory or a text document and back.

With reference back to FIG. 1 , methods include transforming 125 the sequence into a graph 231 and also obtaining 135 a second sequence from bisulfite-treated nucleic acid 129 from the subject aligning 141 the second sequence to the graph 231. In some embodiments, nucleic acid from the subject is treated 129 and sequenced 135 to obtain the second sequence.

FIG. 6 diagrams obtaining the second sequence according to some embodiments. FIG. 6 shows obtaining genomic DNA from a subject (e.g., blood sample, cultured cells, cultured bacteria, animal tissues etc.). The DNA may be isolated by using a commercially-available DNA extraction kit following the corresponding manufacturer's protocols.

In one embodiment, genomic DNA (1-10 μg) is dissolved in deionized water with 18 μl final volume. The DNA is denatured by boiling in a water bath for 20 min and adding 2 μl of 3 M NaOH and 380 μl 5 M sodium bisulfite solution. Mix, cover with mineral oil, incubate in dark at 50° C. for 12-16 h. Bisulfite treated DNA may purified using a Wizard DNA clean-up kit from Promega according to the manufacturer's protocol. The bisulfite-modified DNA is eluted in 50 μl deionized water and 11 μl 3 M NaOH is added. Incubate at 37° C. for 15 min to desulfonate the DNA. Add 166 μl 5 M ammonium acetate, 750 μl of absolute ethanol and 200 μl isopropanol to precipitate the DNA at −20° C. for 2-4 h. Centrifuge, wash with EtOH, and dry the DNA pellet. Re-suspend in TE or de-ionized water. Bisulfite PCR amplification can be performed as a regular PCR reaction. Prior to sequencing, purification of PCR products removes the residue of the PCR reaction that might interfere with the outcome of sequencing results. Commercially-available kits such as QIAquick PCR Purification Kit (Qiagen) can be used and the purified PCR products can be directly sequenced. If starting with single-molecules, it may be preferable to clone, e.g., using pGEM-T Easy vector system II (Promega), which provides a T4 DNA ligase system, a pGEM-T Easy vector and competent JM109 cells. Purified PCR products are ligated to the pGEM-T Easy vector and transformed into competent JM109 cells. The JM109 cells that carry the ligated vectors are selected on agar plates containing ampicillin/X-gal/IPTG by color and grown in LB medium. Plasmids containing the target DNA are extracted by using the QlAprep Spin Miniprep Kit (Qiagen) and subjected to standard sequencing analysis. All the procedures follow the manufacturer's protocol. For discussion see Li and Tollefsbol, 2011, DNA methylation detection: bisulfite genomic sequencing analysis, Methods Mol Biol 791:11-21; Li, 2007, Designing PCR primer for DNA methylation mapping, Methods Mol Biol 402:371-384; Li & Dahiya, 2002, MethPrimer: designing primers for methylation PCRs, Bioinformatics 18:1427-1431, the contents of each of which are incorporated by reference for all purposes. As shown in FIG. 6 , methods of the invention may include sequencing 135 the bisulfite-treated DNA to produce the second sequence 615.

The second sequence 615 is aligned to the graph 231. This can include aligning the sequence reads produced by the sequencing 135 against the Methyl-Seq-ready graph 231 using, for example, a modified Smith-Waterman operation.

Performing the alignment 141 provides an optimal-scoring alignment 621. FIG. 6 shows a cartoon version of the second sequence 615 aligned to the graph 201. Making reference to the optimal scoring alignment 621, systems and methods of the invention may be used to observing 149—in a position in the second sequence 615 that aligns to the position in the sequence—a corresponding base that matches the base observed in the position. With continued reference to the alignment 621 illustrated in FIG. 6 , it can be seen that the graph 231 includes two positions at which it splits into a first branch and a second branch, in which the first branch represents a base observed in a position of the sequence and the second branch represents an alternative base not observed in the position.

Using alignment 621 for example, systems and methods of the invention can be used to call 149 a methylated cytosine at any location in which C persists in the aligned sequence. To determine the optimal alignment 621, the sequence 615 may be aligned to the graph 621 using a modified Smith-Waterman operation that expands on the concept of a pairwise alignment.

Pairwise alignment generally involves placing one sequence along part of target, introducing gaps according to an algorithm, scoring how well the two sequences match, and preferably repeating for various position along the reference. The best-scoring match is deemed to be the alignment and represents an inference about what the sequence data represents. In some embodiments, scoring an alignment of a pair of nucleic acid sequences involves setting values for the probabilities of substitutions and indels. When individual bases are aligned, a match or mismatch contributes to the alignment score by a substitution probability, which could be, for example, 1 for a match and −0.33 for a mismatch. An indel deducts from an alignment score by a gap penalty, which could be, for example, −1. Gap penalties and substitution probabilities can be based on empirical knowledge or a priori assumptions about how sequences evolve. Their values affects the resulting alignment. Particularly, the relationship between the gap penalties and substitution probabilities influences whether substitutions or indels will be favored in the resulting alignment.

Stated formally, an alignment represents an inferred relationship between two sequences, x and y. For example, in some embodiments, an alignment A of sequences x and y maps x and y respectively to another two strings x′ and y′ that may contain spaces such that: (i) |x′|=|y′|; (ii) removing spaces from x′ and y′ should get back x and y, respectively; and (iii) for any i, x′[i] and y′[i] cannot be both spaces.

A gap is a maximal substring of contiguous spaces in either x′ or y′. An alignment A can include the following three kinds of regions: (i) matched pair (e.g., x′[i]=y′[i]; (ii) mismatched pair, (e.g., x′[i]≠y′[i] and both are not spaces); or (iii) gap (e.g., either x′[i . . . j] or y′[i . . . j] is a gap). In certain embodiments, only a matched pair has a high positive score a. In some embodiments, a mismatched pair generally has a negative score b and a gap of length r also has a negative score g+rs where g, s<0. For DNA, one common scoring scheme (e.g. used by BLAST) makes score a=1, score b=−3, g=−5 and s=−2. The score of the alignment A is the sum of the scores for all matched pairs, mismatched pairs and gaps. The alignment score of x and y can be defined as the maximum score among all possible alignments of x and y.

Any pair may have a score a defined by a 4×4 matrix B of substitution probabilities. For example, B(i,i)=1 and 0<B(i,j)<1 [for i≠j] is one possible scoring system. For instance, where a transition is thought to be more biologically probable than a transversion, matrix B could include B(C,T)=0.7 and B(A,T)=0.3, or any other set of values desired or determined by methods known in the art.

Alignment according to some embodiments of the invention includes pairwise alignment. A pairwise alignment, generally, involves—for sequence Q (query) having m characters and a reference genome T (target) of n characters—finding and evaluating possible local alignments between Q and T. For any 1≤i≤n and 1≤j≤m, the largest possible alignment score of T[h . . . i] and Q[k . . . j], where h<i and is computed (i.e. the best alignment score of any substring of T ending at position i and any substring of Q ending at position j). This can include examining all substrings with cm characters, where c is a constant depending on a similarity model, and aligning each substring separately with Q. Each alignment is scored, and the alignment with the preferred score is accepted as the alignment. One of skill in the art will appreciate that there are exact and approximate algorithms for sequence alignment. Exact algorithms will find the highest scoring alignment, but can be computationally expensive. Two well-known exact algorithms are Needleman-Wunsch (J Mol Biol, 48(3):443-453, 1970) and Smith-Waterman (J Mol Biol, 147(1):195-197, 1981; Adv. in Math. 20(3), 367-387, 1976). A further improvement to Smith-Waterman by Gotoh (J Mol Biol, 162(3), 705-708, 1982) reduces the calculation time from O(m{circumflex over ( )}2n) to O(mn) where m and n are the sequence sizes being compared and is more amendable to parallel processing. In the field of bioinformatics, it is Gotoh's modified algorithm that is often referred to as the Smith-Waterman algorithm. Smith-Waterman approaches are being used to align larger sequence sets against larger reference sequences as parallel computing resources become more widely and cheaply available. See, e.g., Amazon's cloud computing resources. All of the journal articles referenced herein are incorporated by reference in their entireties.

The original Smith-Waterman (SW) algorithm aligns linear sequences by rewarding overlap between bases in the sequences, and penalizing gaps between the sequences. Smith-Waterman also differs from Needleman-Wunsch, in that SW does not require the shorter sequence to span the string of letters describing the longer sequence. That is, SW does not assume that one sequence is a read of the entirety of the other sequence. Furthermore, because SW is not obligated to find an alignment that stretches across the entire length of the strings, a local alignment can begin and end anywhere within the two sequences.

The original SW algorithm is expressed for an n×m matrix H, representing the two strings of length n and m, in terms of equation (1): H_k0=H_0l=0 (for 0≤k≤n and 0≤l≤m) H_ij=max{H_(i−1,j−1)+s(a_i,b_j),H_(i−1,j)−W_in,H_(i,j−1)−W_del,0} (for 1≤i≤n and 1≤j≤m)  (1)

In the equations above, s(ai,bj) represents either a match bonus (when ai=bj) or a mismatch penalty (when ai≠bj), and insertions and deletions are given the penalties Win and Wdel, respectively. In most instances, the resulting matrix has many elements that are zero. This representation makes it easier to backtrace from high-to-low, right-to-left in the matrix, thus identifying the alignment.

Once the matrix has been fully populated with scores, the SW algorithm performs a backtrack to determine the alignment. Starting with the maximum value in the matrix, the algorithm will backtrack based on which of the three values (Hi−1,j−1, Hi−1,j, or Hi,j−1) was used to compute the final maximum value for each cell. The backtracking stops when a zero is reached. The optimal-scoring alignment may contain greater than the minimum possible number of insertions and deletions, while containing far fewer than the maximum possible number of substitutions.

SW or SW-Gotoh may be implemented using dynamic programming to perform local sequence alignment of the two strings, S and A, of sizes m and n, respectively. This dynamic programming employs tables or matrices to preserve match scores and avoid re-computation for successive cells. Each element of the string can be indexed with respect to a letter of the sequence, that is, if S is the string ATCGAA, S[1]=A.

Instead of representing the optimum alignment as Hi,j (above), the optimum alignment can be represented as B[j,k] in equation (2) below: B[j,k]=max(p[j,k],i[j,k],d[j,k],0) (for 0<j<m,0<k<n)  (2)

The arguments of the maximum function, B[j,k], are outlined in equations (3)-(5) below, wherein MISMATCH_PEN, MATCH_BONUS, INSERTION_PEN, DELETION_PEN, and OPENING_PEN are all constants, and all negative except for MATCH_BONUS (PEN is short for PENALTY). The match argument, p[j,k], is given by equation (3), below: p[j,k]=max(p[j−1,k−1],i[j−1,k−1],d[j−1,k−1])+MISMATCH_PEN, if S[j]≠A[k]=max(p[j−1,k−1],i[j−1,k−1],d[j−1,k−1])+MATCH_BONUS, if S[j]=A[k]  (3)

the insertion argument i[j,k], is given by equation (4), below: i[j,k]=max(p[j−1,k]+OPENING_PEN,i[j−1,k],d[j−1,k]+OPENING_PEN)+INSERTION_PEN  (4)

and the deletion argument d[j,k], is given by equation (5), below: d[j,k]=max(p[j,k−1]+OPENING_PEN,i[j,k−1]+OPENING_PEN,d[j,k−1])+DELETION_PEN  (5)

For all three arguments, the [0,0] element is set to zero to assure that the backtrack goes to completion, i.e., p[0,0]=i[0,0]=d[0,0]=0.

The scoring parameters are somewhat arbitrary, and can be adjusted to achieve the behavior of the computations. One example of the scoring parameter settings (Huang, Chapter 3: Bio-Sequence Comparison and Alignment, ser. Curr Top Comp Mol Biol. Cambridge, Mass.: The MIT Press, 2002) for DNA would be:

MATCH_BONUS: 10

MISMATCH_PEN: −20

INSERTION_PEN: −40

OPENING_PEN: −10

DELETION_PEN: −5

The relationship between the gap penalties (INSERTION_PEN, OPENING_PEN) above help limit the number of gap openings, i.e., favor grouping gaps together, by setting the gap insertion penalty higher than the gap opening cost. Of course, alternative relationships between MISMATCH_PEN, MATCH_BONUS, INSERTION_PEN, OPENING_PEN and DELETION_PEN are possible.

In some embodiments, the methods and systems of the invention use a modified Smith-Waterman operation that involves a multi-dimensional look-back through the graph 231. Multi-dimensional operations of the invention provide for a “look-back” type analysis of sequence information (as in Smith-Waterman), wherein the look back is conducted through a multi-dimensional space that includes multiple pathways and multiple nodes. The multi-dimensional algorithm can be used to align sequence reads against the DAG-type reference. That alignment algorithm identifies the maximum value for Ci,j by identifying the maximum score with respect to each sequence contained at a position on the DAG (e.g., the reference sequence construct). In fact, by looking “backwards” at the preceding positions, it is possible to identify the optimum alignment across a plurality of possible paths.

The modified Smith-Waterman operation described here, aka the multi-dimensional alignment, provides exceptional speed when performed in a genomic DAG system that employs physical memory addressing (e.g., through the use of native pointers or index free adjacency as discussed above). The combination of multi-dimensional alignment to a graph 231 with the use of spatial memory addresses (e.g., native pointers or index-free adjacency) improves what the computer system is capable of, facilitating whole genomic scale analysis and epigenetic profiling to be performed using the methods described herein.

The operation includes aligning a sequence, or string, to a DAG. For the purpose of defining the algorithm, let S be the string being aligned, and let D be the directed acyclic graph to which S is being aligned. The elements of the string, S, are bracketed with indices beginning at 1. Thus, if S is the string ATCGAA, S[1]=A, S[4]=G, etc.

In certain embodiments, for the DAG, each letter of the sequence of a node will be represented as a separate element, d. A predecessor of d is defined as:

(i) If d is not the first letter of the sequence of its node, the letter preceding d in its node is its (only) predecessor;

(ii) If d is the first letter of the sequence of its node, the last letter of the sequence of any node (e.g., all exons upstream in the genome) that is a parent of d's node is a predecessor of d.

The set of all predecessors is, in turn, represented as P[d].

In order to find the “best” alignment, the algorithm seeks the value of M[j,d], the score of the optimal alignment of the first j elements of S with the portion of the DAG preceding (and including) d. This step is similar to finding Hi,j in equation 1 above. Specifically, determining M[j,d] involves finding the maximum of a, i, e, and 0, as defined below: M[j,d]=max{a,i,e,0} where e=max{M[j,p*]+DELETE_PEN} for p* in P[d] i=M[j−1,d]+INSERT_PEN a=max{M[j−1,p*]+MATCH_SCORE} for p* in P[d], if S[j]=d;max{M[j−1,p*]+MISMATCH_PEN} for p* in P[d], if S[j]≠d  (6)

As described above, e is the highest of the alignments of the first j characters of S with the portions of the DAG up to, but not including, d, plus an additional DELETE_PEN. Accordingly, if d is not the first letter of the sequence of the node, then there is only one predecessor, p, and the alignment score of the first j characters of S with the DAG (up-to-and-including p) is equivalent to M[j,p]+DELETE_PEN. In the instance where d is the first letter of the sequence of its node, there can be multiple possible predecessors, and because the DELETE_PEN is constant, maximizing [M[j, p*]+DELETE_PEN] is the same as choosing the predecessor with the highest alignment score with the first j characters of S.

In equation (6), i is the alignment of the first j−1 characters of the string S with the DAG up-to-and-including d, plus an INSERT_PEN, which is similar to the definition of the insertion argument in SW (see equation 1).

Additionally, a is the highest of the alignments of the first j characters of S with the portions of the DAG up to, but not including d, plus either a MATCH_SCORE (if the jth character of S is the same as the character d) or a MISMATCH_PEN (if the jth character of S is not the same as the character d). As with e, this means that if d is not the first letter of the sequence of its node, then there is only one predecessor, i.e., p. That means a is the alignment score of the first j−1 characters of S with the DAG (up-to-and-including p), i.e., M[j−1,p], with either a MISMATCH_PEN or MATCH_SCORE added, depending upon whether d and the jth character of S match. In the instance where d is the first letter of the sequence of its node, there can be multiple possible predecessors. In this case, maximizing {M[j, p*]+MISMATCH_PEN or MATCH_SCORE} is the same as choosing the predecessor with the highest alignment score with the first j−1 characters of S (i.e., the highest of the candidate M[j−1,p*] arguments) and adding either a MISMATCH_PEN or a MATCH_SCORE depending on whether d and the jth character of S match.

Again, as in the SW algorithm, the penalties, e.g., DELETE_PEN, INSERT_PEN, MATCH_SCORE and MISMATCH_PEN, can be adjusted to encourage alignment with fewer gaps, etc.

As described in the equations above, the operation finds the optimal (e.g., maximum) value for the sequence 209 by calculating not only the insertion, deletion, and match scores for that element, but looking backward (against the direction of the DAG) to any prior nodes on the DAG to find a maximum score.

As shown in the lower portion of FIG. 6 , any C appearing in the second sequence 615 can be taken to represent a methylated cytosine in the genome of the subject. Since the graph 231 may be gene- or genome-scale (e.g., millions of base-pairs long at its longest path), aligning the second sequence 615 to the graph 231 reveals where within the subject's genome the methylated cytosine lies. Thus, systems and methods of the invention may be used for calling 149 modified residues in the genome to produce epigenetic information 631 that identifies one or multiple modified bases and their locations within the genome of the subject.

FIG. 7 shows the matrices that represent the comparison. The modified Smith-Waterman operation of the invention identifies the highest score and performs a backtrack to identify the proper alignment of the sequence. See, e.g., U.S. Pub. 2015/0057946 and U.S. Pub. 2015/0056613, both incorporated by reference. Systems and methods of the invention can be used to provide a report that identifies a modified base at the position within the genome of the subject.

FIG. 8 illustrates a report 801 that identifies a modified base at the position within the genome of the subject. Report 801 includes epigenetic information 631 that identifies one or multiple modified bases and their locations within the genome of the subject. In certain embodiments, report 801 also includes genotype information 239 about un-modified bases in the subject's genome. Thus use of systems and methods of the invention provide a product that facilitates medical genetics and patient counseling. A physician may use a report 801 provided by the system to determine a medical course of action or counsel a patient on health and wellness issues.

Methods may be used to provide a report on phenomenon with clinical or developmental significance to a subject. For example, a report may identify a gene in the subject for which transcription has been regulated by the methylated cytosine at the position within the genome of the subject. In some embodiments, the report identifies a methylation status of a CpG island within the genome of the subject, for example, whether the CpG island is hyper- or hypo-methylated. Such a report may usefully determine whether CpG islands are hyper- or hypo-methylated, something that is often particularly biologically significant since CpG islands frequently occur in promoters of genes and hyper- or hypo-methylation of such sites can result in decreased or increased (respectively) expression of the associated genes.

It is understood that the addition of methyl groups to cytosine in certain CpG dinucleotides and patterns of methylated CpGs provide an epigenetic means for differential regulation of gene expression. It may be that CpG methylation regulates and stabilizes chromatin structure, influencing the ability of the transcription machinery to access regions of DNA. As a result, methylated CpGs may restrict transcription while unmethylated CpGs in the vicinity allow a gene to be expressed. Where a report 801 reveals a methylation status, such as a specific pattern, or hyper- or hypo-methylation, the report may provide insight into specific gene expression within a subject, and may be even be used to illustrate expression within specific tissue or cells. Discussion may be found in Saxonov et al., 2006, A genome-wide analysis of CpG dinucleotides in the human genome distinguishes two distinct classes of promoters, PNAS 103(5):1412-1417, incorporated by reference.

It is noted that certain embodiments of systems and methods of the invention may be used for bisulfite conversion reaction that tend to be incomplete. In some treatments 129, incomplete bisulfite conversion may otherwise result in unmethylated Cs being called as methylated. Systems and methods of the invention may be used to address this problem by treating several different samples with bisulfite separately, and then sequencing and aligning as described above in connection with FIG. 6 . Here, calling modified residues preferably includes calling a methylated cytosine at a position only when a C persists in each of the resulting aligned sequences. Additional discussion of methylation analysis may be found in Laird, 2010, Principles and challenges of genome-wide DNA methylation analysis, Nat Rev Genet 11:191-203; Zhang and Jeltsch, 2010, The application of next generation sequencing in DNA methylation analysis, Genes 1:85-101; and Lee et al., 2014, Improved reduced representation bisulfite sequencing for epigenomic profiling of clinical samples, Biological Procedures Online 16:1-9, the contents of each of which are incorporated by reference in their entirety for all purposes.

FIG. 9 gives a structure of common pyrimidine nucleotides that may be found in the subject genome to aid in visualizing the treatment and sequencing operations used in the invention. DNA methylation is a process by which a methyl group is added to a cytosine nucleotide. (Adenine nucleotides can also be methylated, but cytosine methylation is far more studied and better understood, so we will focus on cytosine methylation in this disclosure.) It typically occurs in CpG sites, ie when a C is followed in a genomic sequence by a G. Such groups are less prevalent than would be assumed given a random distribution of basepairs, something which may be attributed to the long-term effects of methylation. While deaminated cytosines are repaired, a methylated cytosine when deaminated is thymine, which is recognized as such during DNA replication. Thus after deamination, regions that had been methylated are not faithfully replicated and methylated CpGs in the germ line may be lost over time (Saxonov 2006). Methylation can affect the expression of a gene, typically repressing it, and is commonly implicated in cancer. In some contexts it may be heritable, and in this way it is also implicated in heritable diseases.

Methyl-Seq refers to the application of next-generation sequencing (NGS) methods to DNA that has been specially treated in order to make it possible to distinguish methylated from unmethylated cytosine. This involves treating the DNA with bisulfite, a process which converts unmethylated cytosine to uracil but leaves methylated cytosine unaffected. Remaining cytosine base-pairs can be assumed to be methylated. One complication is that the efficiency of the bisulfite conversion isn't absolute—some unmethylated cytosines will not be converted, and thus appear to be methylated.

Another complication that comes into play when using NGS methods is that PCR in the course of library preparation will turn the uracil nucleotides to thymine nucleotides, making it more difficult to recognize unmethylated cytosine and distinguish it from thymine (particularly thymine SNPs). (This happens because uracil binds with adenine in the first phase of PCR, and this adenine then bonds with thymine, which then bonds with adenine, etc.)

Additional material that may be useful in systems and methods of the invention may be found described in Lim et al., 2012, BatMeth: improved mapper for bisulfite sequencing reads on DNA methylation, Genome Biology 13:R82; Liu, 2012, Bis-SNP: Combined DNA methylation and SNP calling for bisulfite-seq data, Genome Biology 13:R61; Hoffman, 2005, Causes and consequences of DNA hypomethylation in human cancer, Biochem Cell Biol 83(3):296-321; and Zhang et al., 2011, Physical activity and global genomic DNA methylation in a cancer-free population, Epigenetics 6(3):293-299, the contents of each of which are incorporated by reference.

INCORPORATION BY REFERENCE

References and citations to other documents, such as patents, patent applications, patent publications, journals, books, papers, web contents, have been made throughout this disclosure. All such documents are hereby incorporated herein by reference in their entirety for all purposes.

EQUIVALENTS

Various modifications of the invention and many further embodiments thereof, in addition to those shown and described herein, will become apparent to those skilled in the art from the full contents of this document, including references to the scientific and patent literature cited herein. The subject matter herein contains important information, exemplification and guidance that can be adapted to the practice of this invention in its various embodiments and equivalents thereof. 

What is claimed is:
 1. A method for determining genomic modifications in a genome of a subject, the method comprising: using at least one processor to perform: obtaining a first sequence of nucleotide bases generated by sequencing nucleic acid from the subject; creating, in at least one non-transitory storage medium, a directed acyclic graph (DAG) representing the first sequence of nucleotide bases, the DAG comprising nodes and edges connecting the nodes, the nodes including a first node representing a cytosine base in the first sequence at a position, a second node representing a thymine base not in the first sequence at the position, and a third node, wherein: the first node is stored as a first object in the at least one non-transitory storage medium, the first object comprising a first symbol string representing the cytosine base, the second node is stored as a second object in the at least one non-transitory storage medium, the second object comprising a second symbol string representing the thymine base, the third node is stored as a third object in the at least one non-transitory storage medium, the third object comprising a third symbol string representing at least a part of the first sequence, and the first object further comprises a first list of one or more pointers to one or more objects in the at least one non-transitory storage medium, the first list of one or more pointers being stored in the at least one non-transitory storage medium and including a pointer to the third object; obtaining a second sequence of nucleotide bases generated by sequencing bisulfite-treated nucleic acid from the subject; aligning the second sequence to the DAG to produce an alignment, at least in part by determining alignment scores between the second sequence and symbol strings associated with at least some of the nodes of the DAG, wherein determining an alignment score for the third node comprises, for a first symbol in the third symbol string, determining the alignment score for the third node based on an alignment score for a preceding node of the DAG; identifying, based on the alignment, a corresponding cytosine base in the second sequence at the position that matches the cytosine base observed in the first sequence at the position; and generating a report that identifies a methylated base in the genome of the subject at the position.
 2. The method of claim 1, wherein the bisulfite-treated nucleic acid has received a bisulfite treatment that selectively converts unmethylated cytosine bases to thymine bases.
 3. The method of claim 1, wherein the report further identifies an unmethylated cytosine base in the genome of the subject at a different position.
 4. The method of claim 1, wherein the second object comprises a second list of one or more pointers to one or more objects in the at least one non-transitory storage medium, and wherein the third object comprises a third list of one or more pointers to one or more objects in the at least one non-transitory storage medium.
 5. The method of claim 4, wherein the second list for the second object comprises a pointer to the third object.
 6. The method of claim 5, wherein each pointer identifies a physical location in the at least one non-transitory storage medium at which the object is stored.
 7. The method of claim 1, further comprising identifying methylated cytosine bases in the genome of the subject at a plurality of positions.
 8. The method of claim 1, further comprising: performing a plurality of replicate bisulfite treating, sequencing, and alignment operations; and calling a methylated cytosine base when a plurality of replicate sequences includes a cytosine base that matches the cytosine base observed in the first sequence at the position.
 9. The method of claim 1, wherein the report identifies a gene in the subject for which transcription has been regulated by the methylated cytosine in the genome of the subject at the position.
 10. The method of claim 1, wherein the report identifies a methylation status of a CpG island in the genome of the subject.
 11. The method of claim 1, further comprising identifying other instances of methylated cytosine bases occurring across at least 50% of a length of a chromosome of the genome of the subject.
 12. The method of claim 1, wherein obtaining the second sequence comprises: treating a portion of the nucleic acid from the subject with bisulfite; and sequencing the bisulfite-treated nucleic acid from the subject.
 13. The method of claim 1, wherein the first sequence and the second sequence are derived from sequence reads generated by operating a nucleic acid sequencing instrument.
 14. At least one non-transitory computer-readable storage medium storing processor-executable instructions that, when executed by a computer hardware processor, cause the computer hardware processor to perform a method for determining genomic modifications in a genome of a subject, the method comprising: obtaining a first sequence of nucleotide bases generated by sequencing nucleic acid from the subject; creating, in the at least one non-transitory storage medium, a directed acyclic graph (DAG) representing the first sequence of nucleotide bases, the DAG comprising nodes and edges connecting the nodes, the nodes including a first node representing a cytosine base in the first sequence at a position, a second node representing a thymine base not in the first sequence at the position, and a third node, wherein: the first node is stored as a first object in the at least one non-transitory storage medium, the first object comprising a first symbol string representing the cytosine base, the second node is stored as a second object in the at least one non-transitory storage medium, the second object comprising a second symbol string representing the thymine base, the third node is stored as a third object in the at least one non-transitory storage medium, the third object comprising a third symbol string representing at least a part of the first sequence, and the first object further comprises a first list of one or more pointers to one or more objects in the at least one non-transitory storage medium, the first list of one or more pointers being stored in the at least one non-transitory storage medium and including a pointer to the third object; obtaining a second sequence of nucleotide bases generated by sequencing bisulfite-treated nucleic acid from the subject; aligning the second sequence to the DAG to produce an alignment, at least in part by determining alignment scores between the second sequence and symbol strings associated with at least some of the nodes of the DAG, wherein determining an alignment score for the third node comprises, for a first symbol in the third symbol string, determining the alignment score for the third node based on an alignment score for a preceding node of the DAG; identifying, based on the alignment, a corresponding cytosine base in the second sequence at the position that matches the cytosine base observed in the first sequence at the position; and generating a report that identifies a methylated base in the genome of the subject at the position.
 15. The at least one non-transitory computer-readable storage medium of claim 14, further comprising: performing a plurality of replicate bisulfite treating, sequencing, and alignment operations; and calling a methylated cytosine base when a plurality of replicate sequences includes a cytosine base that matches the cytosine base observed in the first sequence at the position.
 16. The at least one non-transitory computer-readable storage medium of claim 14, further comprising identifying other instances of methylated cytosine bases occurring across at least 50% of a length of a chromosome of the genome of the subject.
 17. A system comprising: at least one computer hardware processor; and at least one non-transitory computer-readable storage medium storing processor-executable instructions that, when executed by the at least one computer hardware processor, cause the at least one computer hardware processor to perform a method for determining genomic modifications in a genome of a subject, the method comprising: obtaining a first sequence of nucleotide bases generated by sequencing nucleic acid from the subject; creating, in the at least one non-transitory storage medium, a directed acyclic graph (DAG) representing the first sequence of nucleotide bases, the DAG comprising nodes and edges connecting the nodes, the nodes including a first node representing a cytosine base in the first sequence at a position, a second node representing a thymine base not in the first sequence at the position, and a third node, wherein: the first node is stored as a first object in the at least one non-transitory storage medium, the first object comprising a first symbol string representing the cytosine base, the second node is stored as a second object in the at least one non-transitory storage medium, the second object comprising a second symbol string representing the thymine base, the third node is stored as a third object in the at least one non-transitory storage medium, the third object comprising a third symbol string representing at least a part of the first sequence, and the first object further comprises a first list of one or more pointers to one or more objects in the at least one non-transitory storage medium, the first list of one or more pointers being stored in the at least one non-transitory storage medium and including a pointer to the third object; obtaining a second sequence of nucleotide bases generated by sequencing bisulfite-treated nucleic acid from the subject; aligning the second sequence to the DAG to produce an alignment, at least in part by determining alignment scores between the second sequence and symbol strings associated with at least some of the nodes of the DAG, wherein determining an alignment score for the third node comprises, for a first symbol in the third symbol string, determining the alignment score for the third node based on an alignment score for a preceding node of the DAG; identifying, based on the alignment, a corresponding cytosine base in the second sequence at the position that matches the cytosine base observed in the first sequence at the position; and generating a report that identifies a methylated base in the genome of the subject at the position.
 18. The system of claim 17, further comprising: performing a plurality of replicate bisulfite treating, sequencing, and alignment operations; and calling a methylated cytosine base when a plurality of replicate sequences includes a cytosine base that matches the cytosine base observed in the first sequence at the position.
 19. The system of claim 17, further comprising identifying other instances of methylated cytosine bases occurring across at least 50% of a length of a chromosome of the genome of the subject. 